/*
 * MapPoint.cpp
 *
 *  Created on: Nov 21, 2009
 *      Author: jbarreneche
 */

#include "MapPoint.h"

bool MapPoint::between(MapPoint A, MapPoint B){
	if ((A.getX() <= this->getX() && B.getX() >= this->getX()) || (B.getX() <= this->getX() && A.getX() >= this->getX())){
		if ((A.getY() <= this->getY() && B.getY() >= this->getY()) || (B.getY() <= this->getY() && A.getY() >= this->getY())){
			return true;
		}
	}
	return false;
}
